package com.xxxt.jxj.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xxxt.dao.SchoolMapper;
import com.xxxt.entity.School;
import com.xxxt.jxj.service.SchoolService;

@Service
@Transactional
public class SchoolServiceImpl implements SchoolService{
   @Autowired
   private SchoolMapper schoolMapper;


	@Override
	public boolean insertSchool(School school) {
		// TODO Auto-generated method stub
		return schoolMapper.insertSchool(school);
	}


	@Override
	public void batchAddSchoolByExcel(List<Map<String, Object>> importExcel) {
		// TODO Auto-generated method stub
		schoolMapper.batchAddSchoolByExcel(importExcel);
	}


	@Override
	public List<School> selcetAllSchool() {
		// TODO Auto-generated method stub
		return schoolMapper.selcetAllSchool();
	}


	@Override
	public boolean deleteSchool(String schoolId) {
		// TODO Auto-generated method stub
		return schoolMapper.deleteSchool(schoolId);
	}


	@Override
	public boolean batchAddSchool(List<School> school) {
		// TODO Auto-generated method stub
		return schoolMapper.batchAddSchool(school);
	}


	@Override
	public School selcetOneSchool(String schoolId) {
		// TODO Auto-generated method stub
		return schoolMapper.selcetOneSchool(schoolId);
	}


	@Override
	public boolean updateSchool( String schoolName, String id) {
		// TODO Auto-generated method stub
		return schoolMapper.updateSchool(schoolName, id);
	}


	@Override
	public List<School> selcetAllSchoolByPage(int pageNum,int pageSize) {
		// TODO Auto-generated method stub
		return schoolMapper.selcetAllSchoolByPage();
	}

}
